#include <iostream>
#include <string>
using namespace std;
class Base{
public:
	int k;
	Base(int n) :k(n){}
};
class Big{
public:
	int v;
	Base b;

	Big(int x):v(x),b(x){}
	Big(const Big&o):v(o.v),b(o.v){}

};
int main(){
	int n;
	while(cin>>n){
		Big a1(n);
		Big a2=a1;
		cout<<a1.v<<","<<a1.b.k<<endl;
		cout<<a2.v<<","<<a2.b.k<<endl;
	}
}